﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using DatabaseLayer;

namespace ControlLayer
{
    [ServiceContract]
    public interface ICustomerCtr
    {
        [OperationContract]
        void CreateCustomer(string ssn, string creditNo, string name, string street, int house, int zip, int phoneNo, string email, string pass);

        [OperationContract]
        Customer GetCustomer(string ssn);

        [OperationContract]
        List<Customer> GetCustomers(string name);

        [OperationContract]
        void UpdateCustomer(string ssn, string creditNo, string name, string street, int house, int zip, int phoneNo, string email, string pass);

        [OperationContract]
        void DeleteCustomer(string ssn);

        [OperationContract]
        string PassSomeText(string s);

        [OperationContract]
        Zip_City GetZipCity(string n);

        //[OperationContract(AsyncPattern = true)]
        //IAsyncResult BeginGetCustomer(string ssn, AsyncCallback callback, object state);

        //Customer EndGetCustomer(IAsyncResult result);
    }
}
